//
//  DiagnosisListViewModel.m
//  MobileChecker
//
//  Created by Lymons on 15-1-4.
//  Copyright (c) 2015年 Lymons. All rights reserved.
//

#import <ReactiveViewModel/ReactiveViewModel.h>

#import "DiagnosisListViewModel.h"

@interface DiagnosisListViewModel ()

@end

@implementation DiagnosisListViewModel

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.items = @[CELL_NETWORK,
                       CELL_CENSOR,
//                       CELL_GPS,
                       CELL_COMPASS,
                       CELL_MAGNETIC,
                       CELL_PROMIXITY,
                       CELL_LUMINA,
                       CELL_VIBRATION,
                       CELL_RECORD,
                       CELL_SOUND,
                       CELL_TOUCH,
                       CELL_SCREEN,
                       CELL_CAMERA,];
    }
    return self;
}

#pragma mark - UITableViewDataSource

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.items.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:self.tableViewCellIdentifier forIndexPath:indexPath];
    if (self.tableViewCellConfigureBlock) {
        self.tableViewCellConfigureBlock(cell, indexPath, self);
    }
    cell.textLabel.text = [self.items objectAtIndex:indexPath.row];
    return cell;
}


@end
